package com.ruoyi.shopping.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 论坛评论对象 jy_bbs_comments
 *
 * @author ruoyi
 * @date 2022-06-20
 */
@Data
@ApiModel
public class BbsComments extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    List<BbsComments> replyComments;
    /** 主键 */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    private Long bbsId;
    /** 正文 */
    @Excel(name = "正文")
    @ApiModelProperty(value = "正文")
    private String mainBody;

    /** 所属端 */
    @Excel(name = "所属端")
    @ApiModelProperty(value = "所属端")
    private String belongs;
    /**
     * 门店id
     */
    private Long storeId;
    /**
     * 门店用户角色id
     */
    private Long storeUserRoleId;
    /**
     * 权限类型
     */
    private String roleType;
    /** 图片列表 */
    @Excel(name = "图片列表")
    @ApiModelProperty(value = "图片列表")
    private String imageList;

    /** 发布端 */
    @Excel(name = "发布端")
    @ApiModelProperty(value = "发布端")
    private String publish;

    /** 发布人id */
    @Excel(name = "发布人id")
    @ApiModelProperty(value = "发布人id")
    private Long publishId;

    /** 发布人名称 */
    @Excel(name = "发布人名称")
    @ApiModelProperty(value = "发布人名称")
    private String publishName;

    /** 发布人头像 */
    @Excel(name = "发布人头像")
    @ApiModelProperty(value = "发布人头像")
    private String publishHead;

    /** 上级id */
    @Excel(name = "上级id")
    @ApiModelProperty(value = "上级id")
    private Long parentId;
    /**
     *
     */
    private Long parentLevelId;
    private String parentPublishName;
    /** $column.columnComment */
    @Excel(name = "上级id")
    @ApiModelProperty(value = "上级id")
    private Long likeNum;

    private String parentName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public List<BbsComments> getReplyComments() {
        return replyComments;
    }

    public void setReplyComments(List<BbsComments> replyComments) {
        this.replyComments = replyComments;
    }

    public void setMainBody(String mainBody)
    {
        this.mainBody = mainBody;
    }

    public String getMainBody()
    {
        return mainBody;
    }
    public void setBelongs(String belongs)
    {
        this.belongs = belongs;
    }

    public String getBelongs()
    {
        return belongs;
    }
    public void setImageList(String imageList)
    {
        this.imageList = imageList;
    }

    public String getImageList()
    {
        return imageList;
    }
    public void setPublish(String publish)
    {
        this.publish = publish;
    }

    public String getPublish()
    {
        return publish;
    }
    public void setPublishId(Long publishId)
    {
        this.publishId = publishId;
    }

    public Long getPublishId()
    {
        return publishId;
    }
    public void setPublishName(String publishName)
    {
        this.publishName = publishName;
    }

    public String getPublishName()
    {
        return publishName;
    }
    public void setPublishHead(String publishHead)
    {
        this.publishHead = publishHead;
    }

    public String getPublishHead()
    {
        return publishHead;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setLikeNum(Long likeNum)
    {
        this.likeNum = likeNum;
    }

    public Long getLikeNum()
    {
        return likeNum;
    }

    public Long getBbsId() {
        return bbsId;
    }

    public void setBbsId(Long bbsId) {
        this.bbsId = bbsId;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public Long getStoreUserRoleId() {
        return storeUserRoleId;
    }

    public void setStoreUserRoleId(Long storeUserRoleId) {
        this.storeUserRoleId = storeUserRoleId;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public Long getParentLevelId() {
        return parentLevelId;
    }

    public void setParentLevelId(Long parentLevelId) {
        this.parentLevelId = parentLevelId;
    }

    public String getParentPublishName() {
        return parentPublishName;
    }

    public void setParentPublishName(String parentPublishName) {
        this.parentPublishName = parentPublishName;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mainBody", getMainBody())
            .append("belongs", getBelongs())
            .append("imageList", getImageList())
            .append("publish", getPublish())
            .append("publishId", getPublishId())
            .append("publishName", getPublishName())
            .append("publishHead", getPublishHead())
            .append("parentId", getParentId())
            .append("likeNum", getLikeNum())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
